﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Index</title>
    
    <link href="../../Content/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../Content/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../Scripts/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <style type ="text/css">
        #welcome{
        	float:right;
        	margin-top: 40px;
        	margin-right:30px;
        }
    
    </style>
    <script type="text/javascript">

        $(function () {
            $('#tt').tabs(); //页面一加载就初始化一下tab标签.

            bindMenuLinkClickEvent();  // 绑定菜单按钮的 点击事件

        });


        // 加表单的动态事件
        function bindMenuLinkClickEvent() {
            $(".menuLink").click(function () {
                var title = $(this).text();

                // 先判断页签里有没有。
                var isExist = $('#tt').tabs('exists', title);
                if (isExist) {
                    $('#tt').tabs('select', title);
                } else { // 如果在中间区域不存在 就创建.

                    $('#tt').tabs('add', {//往页签中添加一个页签
                        title: title,
                        content: '<h1>' + title + '</h1>',
                        iconCls: 'icon-save',
                        closable: true
                    });
                }
                return false;
            });
        }

        //律师表
        //        $(function () {
        //            var lastIndex;
        //            $('#tt').datagrid({
        //                toolbar: [{
        //                    text: '增加',
        //                    iconCls: 'icon-add',
        //                    handler: function () {
        //                        $('#tt').datagrid('endEdit', lastIndex);
        //                        $('#tt').datagrid('appendRow', {
        //                            itemid: '',
        //                            productid: '',
        //                            listprice: '',
        //                            unitprice: '',
        //                            attr1: '',
        //                            status: 'P'
        //                        });
        //                        var lastIndex = $('#tt').datagrid('getRows').length - 1;
        //                        $('#tt').datagrid('beginEdit', lastIndex);
        //                    }
        //                }, '-', {
        //                    text: '删除',
        //                    iconCls: 'icon-remove',
        //                    handler: function () {
        //                        var row = $('#tt').datagrid('getSelected');
        //                        if (row) {
        //                            var index = $('#tt').datagrid('getRowIndex', row);
        //                            $('#tt').datagrid('deleteRow', index);
        //                        }
        //                    }
        //                }, '-', {
        //                    text: '提交',
        //                    iconCls: 'icon-save',
        //                    handler: function () {
        //                        $('#tt').datagrid('acceptChanges');
        //                    }
        //                }, '-', {
        //                    text: '撤回',
        //                    iconCls: 'icon-undo',
        //                    handler: function () {
        //                        $('#tt').datagrid('rejectChanges');
        //                    }
        //                }],
        //                onBeforeLoad: function () {
        //                    $(this).datagrid('rejectChanges');
        //                },
        //                onClickRow: function (rowIndex) {
        //                    if (lastIndex != rowIndex) {
        //                        $('#tt').datagrid('endEdit', lastIndex);
        //                        $('#tt').datagrid('beginEdit', rowIndex);
        //                    }
        //                    lastIndex = rowIndex;
        //                }
        //            });
        //        });
    </script>
    
</head>
<body class="easyui-layout">

    @*----------------------------网站顶部区域------------------------------*@
	<div region="north" border="false" style="height:72px;background:url('../../Content/Image/3.jpg'); background-repeat:repeat-x;">north region
        <img src="../../Content/Image/logo.gif" />

        <div id="welcome">
        <span>欢迎: Admin</span><a href="#">注销</a>
        </div>

    </div>

    @*---------------------------网站左边导航区域--------------------------*@
	<div region="west" split="true" title="West" style="width:150px;">  
    	<div id="aa" class="easyui-accordion" style="width:700px;height:300px;">
		    <div title="后台管理" iconCls="icon-ok" style="overflow:auto;padding:10px;">
			   
			    <p><a href="javascript:void(0)" class="menuLink">用户列表</a></p>
                <p><a href="javascript:void(0)" class="menuLink">角色列表</a></p>
                <p><a href="javascript:void(0)" class="menuLink">权限列表</a></p>

		    </div>
		    <div title="Title2" iconCls="icon-reload" selected="true" style="padding:10px;">
			    content2
		    </div>
		    <div title="Title3">
			    content3
		    </div>
	</div>
    
    
    </div>



    @*------------------------网站中间工作区域-----------------------*@
    <div region="center" title="Main Title">	
        <div id="tt" style="" fit="true"> @*这里是页签的容器*@


            @* 1 律师信息表  先把表格写死写到这里.*@
            <div title="律师信息" id="tt" closable="false" style="padding:20px;" cache="false" href="">
                
	        <h1>律师信息表</h1>
	
           @* id="tt"*@
	        <table style="width:650px;height:auto" title="律师信息表" iconCls="icon-edit" singleSelect="true"
			        idField="itemid" url=''>

        @*		<thead>
			        <tr>
				        <th field="itemid" width="80">律师姓名</th>
				        <th field="attr1" width="150" editor="text">律师地址</th>
			        </tr>
		        </thead>*@

                <tr>
				    <th >律师姓名</th>
				    <th >律师地址</th>
			    </tr>

            @foreach (var item in Model)
            {
                <tr>
				    <th >@item.loginId</th>
				    <th >@item.LawyerAddress</th>
			    </tr>
            }

	</table>

		    </div>

            @* 2 创建律师  先把表格写死写到这里.*@
            <div title="创建律师信息" id="tt" closable="false" style="padding:20px;" cache="false" href="">
                
	            <h1>增加律师</h1>
	
                @* id="tt"*@
	            <table style="width:650px;height:auto" title="律师信息表" iconCls="icon-edit" singleSelect="true"
			        idField="itemid" url=''>

	            </table>

		    </div>


@*            <div title="Laoma.." closable="false" style="padding:20px;">
                This is 2B.

                <div title="用户信息列表 页面" closeable="true">
                    <iframe src="" scrolling="no" frameborder=0>
                    
                    </iframe>

                </div>

		    </div>*@


        </div>

	</div>

    @*----------------------------网站底部区域---------------------------*@
	<div region="south" border="false" style="height:25px; background: #A9FACD; text-align:center;"> 
        <span>版权所有@@网页制作初版</span>
    </div>
</body>
</html>
